<template>
    <el-carousel :interval="5000" arrow="always">
      <el-carousel-item v-for="item in urls " :key="item">
        <el-image  :src="item" fit="fill" />
      </el-carousel-item>
    </el-carousel>
  </template>

<script setup>
const urls =['https://tse1-mm.cn.bing.net/th/id/OIP-C.yNkTTV1WYcPXw0o66obHZQHaEV?w=280&h=180&c=7&r=0&o=5&dpr=1.3&pid=1.7','https://tse1-mm.cn.bing.net/th/id/OIP-C.pjAbJ0P6GXnnFNOVjs8YjAHaEH?w=262&h=180&c=7&r=0&o=5&dpr=1.3&pid=1.7'
,'https://tse2-mm.cn.bing.net/th/id/OIP-C.VjiBF-vL8Okip0P4oxq_qwHaFT?w=285&h=204&c=7&r=0&o=5&dpr=1.3&pid=1.7','https://tse2-mm.cn.bing.net/th/id/OIP-C.HIz-eNnc1YfJtFtYy03VSAHaEH?w=298&h=180&c=7&r=0&o=5&dpr=1.3&pid=1.7']
 

</script>
  
  <style scoped>
  .el-carousel__item h3 {
    color:var(--el-bg);
    opacity: 0.75;
    line-height: 300px;
    margin: 0;
    text-align: center;
  }
  
  .el-carousel{
    border-radius: 20px;
  }
  .el-carousel__item:nth-child(2n) {
    background-color: #99a9bf;
  }
  
  .el-carousel__item:nth-child(2n + 1) {
    background-color: #d3dce6;
  }
  .el-image {
    width: 100%;
    height: 100%;
  }
  </style>
  